package com.rg.util;

public class Cstack_int{
   private int elements[];
   private int size;

   Cstack_int(){
      elements = new int[100];
      size=0;
   }

   public boolean empty(){
      return size == 0?true:false;
   }

   public int peek(){
      return elements[size-1];
   }

   public void push(int value){
      elements[size++]=value;
   }

   public int pop(){
      return elements[--size];
   }

   public int getsize(){
      return size;
   }
}